import greenfoot.*;  // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)

/**
 * This class graphically represents a status property of the Game.
 * 
 * @author (Dilyan GEORGIEV)
 * @author (Thomas KOBER) 
 * @author (Matthew MCDONALD)
 * 
 * @version (1.0)
 */
public class GameStatus extends Actor
{
    /**
     * Constructor for objects of class GameStatus.
     * @param msg GameStatus Message.
     * @param width width of the Message.
     * @param height height of the Message.
     */
    public GameStatus(Message msg, int width, int height)
    {
        super();
        
        GreenfootImage img = new GreenfootImage(width, height);
        
        img.setColor(msg.getTextColor());
        img.setFont(msg.getFont());
        img.drawString(msg.getText(), (int)msg.getPosition().getX(), (int)msg.getPosition().getY());
        
        super.setImage(img);
    }
    
    /**
     * Act - do whatever the GameStatus wants to do. This method is called whenever
     * the 'Act' or 'Run' button gets pressed in the environment.
     */
    public void act() 
    {
        // Add your action code here.
    }    
}
